#if !defined(AFX_DLGBRANCHCREATE_H__69253B95_343B_4826_9B0C_F87CD1EC78A5__INCLUDED_)
#define AFX_DLGBRANCHCREATE_H__69253B95_343B_4826_9B0C_F87CD1EC78A5__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// dlgbranchcreate.h : header file
//

#include "PDMSUIRes.h"
#include "Unit.h"

/////////////////////////////////////////////////////////////////////////////
// CDlgBranchCreate dialog
namespace PDMS
{
	namespace PDMSUI
	{
		class DllExport CDlgBranchCreate : public CDialog
		{
		// Construction
		public:
			CDlgBranchCreate(CWnd* pParent = NULL);   // standard constructor
			TemperatureUnit GetTempV();
			PressureUnit GetPresV();
			void SetShopFlag( BOOL dbuf );
			void SetBuildFlag( BOOL dbuf);
			void SetTracingV( const CString& strbuf );
			void SetName( const CString& strbuf );
			void SetSpecV( const CString& strbuf );
			void SetIspecV( const CString&  strbuf);
			void SetTailDirV( const AcGeVector3d&  buf );
			void SetHeadDirV( const AcGeVector3d& buf );
			void SetTailPosV( const AcGePoint3d&  buf );
			void SetHeadPosV( const AcGePoint3d& buf );
			void SetTailRefV( const CString& strbuf );
			void SetHeadRefV( const CString& strbuf );
			void SetTailConnV( const CString& strbuf );
			void SetHeadConnV( const CString& strbuf );
			void SetTailBoreV( double dbuf );
			void SetHeadBoreV( double dbuf );
			void SetPurV( const CString& strbuf );
			void SetPtrefV( const CString& strbuf );
			void SetMatV( const CString& strbuf );
			void SetFunV( const CString& strbuf );
			void SetFluV( const CString& strbuf );
			void SetDesV( const CString& strbuf );
			void SetCasV( const CString& strbuf );
			void SetTempV( const TemperatureUnit& buf );
			void SetPresV( const PressureUnit& buf );



		public:
			BOOL GetShopFlag(){
				return m_nshopflag;
			}

			BOOL GetBuildFlag(){
				return m_nbuildflag;
			}

			CString GetCasV(){
				return m_strCas;
			}

			CString GetDesV(){
				return m_strDes;
			}

			CString GetFluV(){
				return m_strFlu;
			}

			CString GetFunV(){
				return m_strFun;
			}

			CString GetMatV(){
				return m_strMat;
			}

			CString GetPtrefV(){
				return m_strPtref;
			}

			CString GetPurV(){
				return m_strPur;
			}

			double GetHeadBoreV()
			{
				return m_dHbore;
			}

			double GetTailBoreV()
			{
				return m_dTbore;
			}

			StdString GetHeadConnV()
			{
				return m_strHConn;
			}
			
			StdString GetTailConnV()
			{
				return m_strTConn;
			}

			StdString GetHeadRefV()
			{
				return m_strHref;
			}

			StdString GetTailRefV()
			{
				return m_strTref;
			}

			const AcGePoint3d& GetHeadPosV()
			{
				return m_hPos;
			}

			const AcGePoint3d& GetTailPosV()
			{
				return m_tPos;
			}

			const AcGeVector3d& GetHeadDirV()
			{
				return m_hDir;
			}

			const AcGeVector3d& GetTailDirV()
			{
				return m_tDir;
			}

			StdString GetIspecV()
			{
				return m_strIsuSta;
			}

			StdString GetSpecV()
			{
				return m_strSpecSta;
			}

			StdString GetName()
			{
				return m_strNameEdt;
			}

			StdString GetTracingV()
			{
				return m_strTraSta;
			}

		// Dialog Data
			//{{AFX_DATA(CDlgBranchCreate)
			enum { IDD = IDD_BRANCH_CREATE };
			CComboBox	m_strHTSettingCmb;
			CString	m_strSpecSta;
			CString	m_strIsuSta;
			CString	m_strNameEdt;
			CString	m_strTraSta;
			CString	m_strWrtSta;
			//}}AFX_DATA


		// Overrides
			// ClassWizard generated virtual function overrides
			//{{AFX_VIRTUAL(CDlgBranchCreate)
			protected:
			virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
			//}}AFX_VIRTUAL

		// Implementation
		protected:
			
			// Generated message map functions
			//{{AFX_MSG(CDlgBranchCreate)
			afx_msg void OnAttrBtn();
			afx_msg void OnSpecBtn();
			virtual BOOL OnInitDialog();
			afx_msg void OnCancelMode();
			virtual void OnOK();
			//}}AFX_MSG
			DECLARE_MESSAGE_MAP()


		private:
			StdString	m_strCas;
			StdString	m_strDes;
			StdString	m_strFlu;
			StdString	m_strFun;
			StdString	m_strMat;
			StdString	m_strPtref;
			StdString	m_strPur;
			StdString	m_strTemp;
			StdString	m_strPres;
			BOOL	m_nshopflag;
			BOOL	m_nbuildflag;
			double	m_dHbore;
			double	m_dTbore;
			StdString m_strHConn;
			StdString m_strTConn;
			StdString m_strHref;
			StdString m_strTref;
			AcGePoint3d m_hPos;
			AcGePoint3d m_tPos;
			AcGeVector3d m_hDir;
			AcGeVector3d m_tDir;
			TemperatureUnit m_temp;
			PressureUnit m_pres;
		};
	}
}
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGBRANCHCREATE_H__69253B95_343B_4826_9B0C_F87CD1EC78A5__INCLUDED_)
